import request from '@/utils/request'

// 查询配送员管理列表
export function listLogisticscourierPeople(query) {
  return request({
    url: '/logisticscourierPeople/logisticscourierPeople/list',
    method: 'get',
    params: query
  })
}

// 查询配送员管理详细
export function getLogisticscourierPeople(courierId) {
  return request({
    url: '/logisticscourierPeople/logisticscourierPeople/' + courierId,
    method: 'get'
  })
}

// 新增配送员管理
export function addLogisticscourierPeople(data) {
  return request({
    url: '/logisticscourierPeople/logisticscourierPeople',
    method: 'post',
    data: data
  })
}

// 修改配送员管理
export function updateLogisticscourierPeople(data) {
  return request({
    url: '/logisticscourierPeople/logisticscourierPeople',
    method: 'put',
    data: data
  })
}

// 删除配送员管理
export function delLogisticscourierPeople(courierId) {
  return request({
    url: '/logisticscourierPeople/logisticscourierPeople/' + courierId,
    method: 'delete'
  })
}
